<div id="nav">
<script>
jQuery(document).ready(function(){
  jQuery("#navul li").each(function(){
    var original_url=jQuery(this).attr("original_url");
	if("/index.htm".indexOf(original_url)>=0){
	   jQuery(this).addClass("this");
	}
  });
  //
  jQuery(".left_menu_dl").live("mouseover",function(){
    var sc_id=jQuery(this).attr("id");
	var sc_color=jQuery(this).attr("sc_color");
	var child_count = jQuery(this).attr("child_count");
	var eq =jQuery(this).index();
	/*if(jQuery(".left_menu_dd[id=child_"+sc_id+"]").html()==null){
	  jQuery.ajax({type:'POST',url:'$!webPath/nav_data.htm',data:{"sc_id":sc_id},
	  	  success:function(data){
			if(jQuery(".left_menu_dd[id=child_"+sc_id+"]").html()==null){																						
	      	  jQuery(".left_menu_dt[id=dts_"+sc_id+"]").after(data);
			}
		    if(child_count>0){
			  jQuery("#dts_"+sc_id).addClass("left_menu_this").removeClass("left_menu_dt");
			  jQuery("#child_"+sc_id).show();			
			}
			jQuery("#left_menu_con_"+sc_id).attr("style","border:1px solid "+sc_color+"; border-left:1px solid "+sc_color+";").find(".menu_con_right_top").css("background-color",sc_color);
		    var z = -35;
	    	var x = eq*z;
		    jQuery("#left_menu_con_"+sc_id).css('margin-top',x+'px');
			jQuery(".left_menu_dd[id=child_"+sc_id+"]").show();
		 }});
	}else{
	   if(child_count>0){
		  jQuery("#dts_"+sc_id).addClass("left_menu_this").removeClass("left_menu_dt");
		  jQuery("#child_"+sc_id).show();			
		}
		jQuery("#left_menu_con_"+sc_id).attr("style","border:1px solid "+sc_color+"; border-left:1px solid "+sc_color+";").find(".menu_con_right_top").css("background-color",sc_color);
	    var z = -35;
    	var x = eq*z;
	    jQuery("#left_menu_con_"+sc_id).css('margin-top',x+'px');
		jQuery(".left_menu_dd[id=child_"+sc_id+"]").show();
	} */
	if(child_count>0){
	  jQuery("#dts_"+sc_id).addClass("left_menu_this").removeClass("left_menu_dt");
	  jQuery("#child_"+sc_id).show();			
	}
	jQuery("#left_menu_con_"+sc_id).attr("style","border:1px solid "+sc_color+"; border-left:1px solid "+sc_color+";").find(".menu_con_right_top").css("background-color",sc_color);
    var z = -35;
   	var x = eq*z;
    jQuery("#left_menu_con_"+sc_id).css('margin-top',x+'px');
	jQuery(".left_menu_dd[id=child_"+sc_id+"]").show();
	
  }).live("mouseleave",function(){
      jQuery("dt[id^=dts_]").removeAttr("style");
	  jQuery("div[id^=left_menu_con_]").removeAttr("style"); 
	  var child_count = jQuery(this).attr("child_count");
	  jQuery("dt[id^=dts_]").removeClass("left_menu_this").addClass("left_menu_dt");	  
	  jQuery(".left_menu_dd[id^=child_]").hide();
  }); 
  //
});

</script>

<div class="nav">

  <div class="nav_center">
  
    <div class="nav_left">
    
      <h2><a href="$!webPath/goods_class.htm"><span>全部分类<em><img src="$!webPath/resources/style/system/front/default/images/nav_left.png"></em></span></a></h2>
      
      <div class="index_topleft">
      
        <div id="left_menu" class="left_menu"> 
        
         #foreach($gc in $!gcs)
            #set($icon_img="$!webPath/resources/style/common/images/icon/default_icon.png")
        	<dl sc_color="#E60012" style="position:relative;" id="$!gc.id" child_count="$!gc.childs.size()" class="left_menu_dl">
        	
	            <dt id="dts_15" class="left_menu_dt">
		            #if($!gc.icon_type==0)
		                #if($!gc.icon_sys!="")
		                #set($icon_img="$!webPath/resources/style/common/images/icon/icon_$!{gc.icon_sys}.png")
		                #end
	                #else
		                #if($!gc.icon_acc)
		                #set($icon_img="$!webPath/$!gc.icon_acc.path/$!gc.icon_acc.name")
		                #end
	                #end 
		            <i class="left_menu_i"><img width="16" height="16" src="$!icon_img"></i>
		            <strong class="left_menu_str">
		            	<a href="$!webPath/store_goods_list_$!{gc.id}.htm">$!gc.className</a>
		            </strong> 
	            </dt>
	            
				<dd id="child_$!gc.id" style="display: none;" class="left_menu_dd">
				    <div id="left_menu_con_15" class="left_menu_con this "> 
				    <span class="left_menu_sp">
					    <div class="left_menu_con_center">
					        <div class="menu_con_right_top" style="background-color: rgb(230, 0, 18);">
					        <dl>
					          <dt>
					          #foreach($gc1 in $gc.childs)
	                    		  #if($!gc1.display)
						          <span><a href="$!webPath/store_goods_list_$!{gc1.id}.htm" target="_blank">$!gc1.className</a></span>  
						          #end
					          #end
					          </dt>
					        </dl>
					      </div>
					      
					      <div class="left_menu_con_center_left">
					      	  #foreach($gc1 in $gc.childs)
	                    		  #if($!gc1.display)
							          <dl>
								          <dt><b> &gt; </b><a href="$!webPath/store_goods_list_$!{gc1.id}.htm" target="_blank">$!gc1.className</a></dt>
								          <dd>
								          #foreach($gc2 in $gc1.childs)
					                          #if($!gc2.display)
					                          <a href="$!webPath/store_goods_list_$!{gc2.id}.htm" target="_blank">$!gc2.className</a>
					                          #end
				                          #end
								          </dd>
							          </dl>
						          #end
					          #end
					       </div>
					    </div>
				    </span>
				  	</div>
				</dd>
				
			</dl>
			#end
		</div>
		
      </div>
    </div>
    
    <ul id="navul">
    
    #set($navs=$!navTools.queryNav(0,-1))
    
    #foreach($nav in $navs)
	    #if($!CommUtil.indexOf("$!nav.url","http://")>=0)
	      #set($url="$!nav.url")
	    #else
	      #set($url="$!webPath/$!{nav.url}")
	    #end
	    <li><a id="$!nav.id" #if($!nav.new_win==1)target="_blank"#end original_url="$!nav.original_url" href="$!url"><span>$!{nav.title}</span></a></li>
    #end
    
    </ul>
    
  </div>
  
</div>

</div>

